all repos — fluxbox @ c18985732b09da5f09189e91a145cb33e656688d

custom fork of the fluxbox windowmanager

more dead functions
markt markt
commit

c18985732b09da5f09189e91a145cb33e656688d

parent

698539d9b9012bb6c282725e775e358c1bd4a281

M src/Container.hhsrc/Container.hh

@@ -96,8 +96,6 @@ inline bool empty() const { return m_item_list.empty(); }

inline const Item& selected() const { return m_selected; } inline Item selected() { return m_selected; } 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; } void for_each(std::mem_fun_t<void, FbTk::FbWindow> function);
M src/FbTk/ImageControl.hhsrc/FbTk/ImageControl.hh

@@ -48,7 +48,9 @@ unsigned long cache_timeout = 300000l, unsigned long cache_max = 200l);

virtual ~ImageControl(); inline bool doDither() const { return m_dither; } +#ifdef NOT_USED inline int bitsPerPixel() const { return bits_per_pixel; } +#endif inline int depth() const { return m_screen_depth; } inline int colorsPerChannel() const { return m_colors_per_channel; } inline int screenNumber() const { return m_screen_num; }
M src/FbTk/Menu.hhsrc/FbTk/Menu.hh

@@ -131,7 +131,6 @@ virtual void hide();

virtual void clearWindow(); #ifdef NOT_USED void setActiveIndex(int index) { m_active_index = index; } -#endif /*@}*/ /**

@@ -139,6 +138,7 @@ @name accessors

*/ //@{ inline int activeIndex() const { return m_active_index; } +#endif inline bool isTorn() const { return m_torn; } inline bool isVisible() const { return m_visible; } inline int screenNumber() const { return menu.window.screenNumber(); }
M src/FbTk/RefCount.hhsrc/FbTk/RefCount.hh

@@ -38,8 +38,10 @@ RefCount<Pointer> &operator = (Pointer *p);

Pointer *operator * () const { return get(); } Pointer *operator -> () const { return get(); } Pointer *get() const { return m_data; } +#ifdef NOT_USED /// @return number of referenses unsigned int usedBy() const { return (m_refcount != 0 ? *m_refcount : 0); } +#endif private: /// increase referense count void incRefCount();
M src/FbTk/TextButton.ccsrc/FbTk/TextButton.cc

@@ -139,10 +139,12 @@ unsigned int TextButton::textWidth() const {

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

@@ -71,10 +71,14 @@ inline const std::string &text() const { return m_text; }

inline FbTk::Font &font() const { return *m_font; } inline FbTk::Orientation orientation() const { return m_orientation; } unsigned int textWidth() const; +#ifdef NOT_USED unsigned int textHeight() const; +#endif int bevel() const { return m_bevel; } +#ifdef NOT_USED unsigned int leftPadding() const { return m_left_padding; } unsigned int rightPadding() const { return m_right_padding; } +#endif void renderForeground(FbWindow &win, FbDrawable &drawable);
M src/Toolbar.hhsrc/Toolbar.hh

@@ -120,7 +120,6 @@ inline BScreen &screen() { return m_screen; }

inline const BScreen &screen() const { return m_screen; } inline unsigned int width() const { return frame.window.width(); } 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 y() const { return isHidden() ? frame.y_hidden : frame.y; } inline Placement placement() const { return *m_rc_placement; }
M src/Window.hhsrc/Window.hh

@@ -308,8 +308,6 @@ @name accessors

*/ //@{ - // @return NormalState | IconicState | WithdrawnState - unsigned int getWmState() const { return m_current_state; } // whether this window can be tabbed with other windows, // and others tabbed with it inline void setTabable(bool tabable) { functions.tabable = tabable; }
M src/fluxbox.hhsrc/fluxbox.hh

@@ -128,7 +128,9 @@ const std::string &getAppsFilename() const { return *m_rc_appsfile; }

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