[vala] Remove unused get_cheader_filename methods



commit 8b151d7a765b6398d6ddad9955d240006d4bfcfa
Author: Jürg Billeter <j bitron ch>
Date:   Fri Apr 10 11:47:52 2009 +0200

    Remove unused get_cheader_filename methods
---
 vala/valanamespace.vala  |   21 +--------------------
 vala/valasourcefile.vala |   12 ------------
 2 files changed, 1 insertions(+), 32 deletions(-)

diff --git a/vala/valanamespace.vala b/vala/valanamespace.vala
index bdda6c8..285910b 100644
--- a/vala/valanamespace.vala
+++ b/vala/valanamespace.vala
@@ -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.
diff --git a/vala/valasourcefile.vala b/vala/valasourcefile.vala
index 65a0e4c..da579ad 100644
--- a/vala/valasourcefile.vala
+++ b/vala/valasourcefile.vala
@@ -197,18 +197,6 @@ public class Vala.SourceFile {
 	}
 
 	/**
-	 * 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.
 	 *
 	 * @return generated C source filename



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]