]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Remove unused get_cheader_filename methods
authorJürg Billeter <j@bitron.ch>
Fri, 10 Apr 2009 09:47:52 +0000 (11:47 +0200)
committerJürg Billeter <j@bitron.ch>
Fri, 10 Apr 2009 09:47:52 +0000 (11:47 +0200)
vala/valanamespace.vala
vala/valasourcefile.vala

index bdda6c85a8afd14237d2a4dc05a9551d507425e6..285910b61172bd714a0fb51e1ff081aee41b3af5 100644 (file)
@@ -481,26 +481,7 @@ public class Vala.Namespace : Symbol {
        public override Gee.List<string> get_cheader_filenames () {
                return new ReadOnlyList<string> (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.
index 65a0e4c8bb4d5568aa0198fc0343fb9429fcff69..da579ad191ed6e7eab91d168fc0c1567fa619201 100644 (file)
@@ -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.
         *