From: Jürg Billeter Date: Fri, 10 Apr 2009 09:47:52 +0000 (+0200) Subject: Remove unused get_cheader_filename methods X-Git-Tag: 0.7.1~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b151d7a765b6398d6ddad9955d240006d4bfcfa;p=thirdparty%2Fvala.git Remove unused get_cheader_filename methods --- diff --git a/vala/valanamespace.vala b/vala/valanamespace.vala index bdda6c85a..285910b61 100644 --- a/vala/valanamespace.vala +++ b/vala/valanamespace.vala @@ -481,26 +481,7 @@ public class Vala.Namespace : Symbol { public override Gee.List get_cheader_filenames () { return new ReadOnlyList (cheader_filenames); } - - /** - * Returns the C header filename of this namespace. - * - * @return header filename - */ - public string get_cheader_filename () { - var s = new StringBuilder (); - bool first = true; - foreach (string cheader_filename in get_cheader_filenames ()) { - if (first) { - first = false; - } else { - s.append_c (','); - } - s.append (cheader_filename); - } - return s.str; - } - + /** * Sets the C header filename of this namespace to the specified * filename. diff --git a/vala/valasourcefile.vala b/vala/valasourcefile.vala index 65a0e4c8b..da579ad19 100644 --- a/vala/valasourcefile.vala +++ b/vala/valasourcefile.vala @@ -196,18 +196,6 @@ public class Vala.SourceFile { return get_subdir () + Path.get_basename (filename); } - /** - * Returns the filename to use when generating C header files. - * - * @return generated C header filename - */ - public string get_cheader_filename () { - if (cheader_filename == null) { - cheader_filename = "%s%s.h".printf (get_destination_directory (), get_basename ()); - } - return cheader_filename; - } - /** * Returns the filename to use when generating C source files. *