more dead functions

This commit is contained in:
markt 2006-07-01 03:32:53 +00:00
parent 698539d9b9
commit c18985732b
9 changed files with 13 additions and 6 deletions

View file

@ -96,8 +96,6 @@ public:
inline const Item& selected() const { return m_selected; } inline const Item& selected() const { return m_selected; }
inline Item selected() { return m_selected; } inline Item selected() { return m_selected; }
unsigned int maxWidthPerClient() const; unsigned int maxWidthPerClient() const;
unsigned int maxTotalSize() const { return m_max_total_size; }
inline unsigned int maxHeightPerClient() const { return (empty() ? height() : height()/size()); }
inline bool updateLock() const { return m_update_lock; } inline bool updateLock() const { return m_update_lock; }
void for_each(std::mem_fun_t<void, FbTk::FbWindow> function); void for_each(std::mem_fun_t<void, FbTk::FbWindow> function);

View file

@ -48,7 +48,9 @@ public:
virtual ~ImageControl(); virtual ~ImageControl();
inline bool doDither() const { return m_dither; } inline bool doDither() const { return m_dither; }
#ifdef NOT_USED
inline int bitsPerPixel() const { return bits_per_pixel; } inline int bitsPerPixel() const { return bits_per_pixel; }
#endif
inline int depth() const { return m_screen_depth; } inline int depth() const { return m_screen_depth; }
inline int colorsPerChannel() const { return m_colors_per_channel; } inline int colorsPerChannel() const { return m_colors_per_channel; }
inline int screenNumber() const { return m_screen_num; } inline int screenNumber() const { return m_screen_num; }

View file

@ -131,7 +131,6 @@ public:
virtual void clearWindow(); virtual void clearWindow();
#ifdef NOT_USED #ifdef NOT_USED
void setActiveIndex(int index) { m_active_index = index; } void setActiveIndex(int index) { m_active_index = index; }
#endif
/*@}*/ /*@}*/
/** /**
@ -139,6 +138,7 @@ public:
*/ */
//@{ //@{
inline int activeIndex() const { return m_active_index; } inline int activeIndex() const { return m_active_index; }
#endif
inline bool isTorn() const { return m_torn; } inline bool isTorn() const { return m_torn; }
inline bool isVisible() const { return m_visible; } inline bool isVisible() const { return m_visible; }
inline int screenNumber() const { return menu.window.screenNumber(); } inline int screenNumber() const { return menu.window.screenNumber(); }

View file

@ -38,8 +38,10 @@ public:
Pointer *operator * () const { return get(); } Pointer *operator * () const { return get(); }
Pointer *operator -> () const { return get(); } Pointer *operator -> () const { return get(); }
Pointer *get() const { return m_data; } Pointer *get() const { return m_data; }
#ifdef NOT_USED
/// @return number of referenses /// @return number of referenses
unsigned int usedBy() const { return (m_refcount != 0 ? *m_refcount : 0); } unsigned int usedBy() const { return (m_refcount != 0 ? *m_refcount : 0); }
#endif
private: private:
/// increase referense count /// increase referense count
void incRefCount(); void incRefCount();

View file

@ -139,10 +139,12 @@ unsigned int TextButton::textWidth() const {
return font().textWidth(text().data(), text().size()); return font().textWidth(text().data(), text().size());
} }
#ifdef NOT_USED
unsigned int TextButton::textHeight() const { unsigned int TextButton::textHeight() const {
return font().height(); return font().height();
} }
#endif
void TextButton::renderForeground(FbWindow &win, FbDrawable &drawable) { void TextButton::renderForeground(FbWindow &win, FbDrawable &drawable) {
// (win should always be *this, no need to check) // (win should always be *this, no need to check)

View file

@ -71,10 +71,14 @@ public:
inline FbTk::Font &font() const { return *m_font; } inline FbTk::Font &font() const { return *m_font; }
inline FbTk::Orientation orientation() const { return m_orientation; } inline FbTk::Orientation orientation() const { return m_orientation; }
unsigned int textWidth() const; unsigned int textWidth() const;
#ifdef NOT_USED
unsigned int textHeight() const; unsigned int textHeight() const;
#endif
int bevel() const { return m_bevel; } int bevel() const { return m_bevel; }
#ifdef NOT_USED
unsigned int leftPadding() const { return m_left_padding; } unsigned int leftPadding() const { return m_left_padding; }
unsigned int rightPadding() const { return m_right_padding; } unsigned int rightPadding() const { return m_right_padding; }
#endif
void renderForeground(FbWindow &win, FbDrawable &drawable); void renderForeground(FbWindow &win, FbDrawable &drawable);

View file

@ -120,7 +120,6 @@ public:
inline const BScreen &screen() const { return m_screen; } inline const BScreen &screen() const { return m_screen; }
inline unsigned int width() const { return frame.window.width(); } inline unsigned int width() const { return frame.window.width(); }
inline unsigned int height() const { return frame.window.height(); } inline unsigned int height() const { return frame.window.height(); }
inline unsigned int exposedHeight() const { return doAutoHide() ? frame.bevel_w : frame.height; }
inline int x() const { return isHidden() ? frame.x_hidden : frame.x; } inline int x() const { return isHidden() ? frame.x_hidden : frame.x; }
inline int y() const { return isHidden() ? frame.y_hidden : frame.y; } inline int y() const { return isHidden() ? frame.y_hidden : frame.y; }
inline Placement placement() const { return *m_rc_placement; } inline Placement placement() const { return *m_rc_placement; }

View file

@ -308,8 +308,6 @@ public:
*/ */
//@{ //@{
// @return NormalState | IconicState | WithdrawnState
unsigned int getWmState() const { return m_current_state; }
// whether this window can be tabbed with other windows, // whether this window can be tabbed with other windows,
// and others tabbed with it // and others tabbed with it
inline void setTabable(bool tabable) { functions.tabable = tabable; } inline void setTabable(bool tabable) { functions.tabable = tabable; }

View file

@ -128,7 +128,9 @@ public:
int colorsPerChannel() const { return *m_rc_colors_per_channel; } int colorsPerChannel() const { return *m_rc_colors_per_channel; }
int getNumberOfLayers() const { return *m_rc_numlayers; } int getNumberOfLayers() const { return *m_rc_numlayers; }
int getTabsPadding() const { return *m_rc_tabs_padding; } int getTabsPadding() const { return *m_rc_tabs_padding; }
#ifdef NOT_USED
int getFocusedTabMinWidth() const { return *m_rc_focused_tab_min_width; } int getFocusedTabMinWidth() const { return *m_rc_focused_tab_min_width; }
#endif
// class to store layer numbers (special Resource type) // class to store layer numbers (special Resource type)
// we have a special resource type because we need to be able to name certain layers // we have a special resource type because we need to be able to name certain layers