From 2f7d9a28512e80cbd8a6bd932644928c5f4dade1 Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 20 May 2013 20:26:56 +0000 Subject: (svn r25274) -Cleanup: remove unused class instance variables --- src/depend/depend.cpp | 3 +-- src/object_gui.cpp | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/depend/depend.cpp b/src/depend/depend.cpp index 1805e3286..1d375aed6 100644 --- a/src/depend/depend.cpp +++ b/src/depend/depend.cpp @@ -83,7 +83,7 @@ public: * @param filename the file to open * @post the file is open; otherwise the application is killed. */ - File(const char *filename) : filename(filename) + File(const char *filename) { this->fp = fopen(filename, "r"); if (this->fp == NULL) { @@ -129,7 +129,6 @@ public: private: FILE *fp; ///< The currently opened file. char *dirname; ///< The directory of the file. - const char *filename; ///< The name of the file. }; /** A token returned by the tokenizer. */ diff --git a/src/object_gui.cpp b/src/object_gui.cpp index a5e065cbd..2938e3b5b 100644 --- a/src/object_gui.cpp +++ b/src/object_gui.cpp @@ -30,7 +30,6 @@ static uint8 _selected_object_view; ///< the view of the selected objec class BuildObjectWindow : public PickerWindowBase { static const int OBJECT_MARGIN = 4; ///< The margin (in pixels) around an object. int line_height; ///< The height of a single line. - int object_height; ///< The height of the object box. int info_height; ///< The height of the info box. Scrollbar *vscroll; ///< The scrollbar. -- cgit v1.2.3-70-g09d2