Mercurial > hg > octave-nkf
changeset 20502:64f6d0543626
eliminate unused static functions
* Canvas.cc (rotate_enabled, zoom_direction): Delete.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 02 Jul 2015 14:23:18 -0400 |
parents | b6a59cc96bfa |
children | d6879b59f46f |
files | libgui/graphics/Canvas.cc |
diffstat | 1 files changed, 0 insertions(+), 24 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/graphics/Canvas.cc +++ b/libgui/graphics/Canvas.cc @@ -348,18 +348,6 @@ } static bool -rotate_enabled (const graphics_object figObj) -{ - // Getting rotate mode property: - octave_value ov_rm - = Utils::properties<figure> (figObj).get___rotate_mode__ (); - - octave_scalar_map rm = ov_rm.scalar_map_value (); - - return rm.contents ("Enable").string_value () == "on"; -} - -static bool zoom_enabled (const graphics_object figObj) { // Getting zoom mode property: @@ -383,18 +371,6 @@ return zm.contents ("Motion").string_value (); } -static std::string -zoom_direction (const graphics_object figObj) -{ - // Getting zoom mode property: - octave_value ov_zm - = Utils::properties<figure> (figObj).get___zoom_mode__ (); - - octave_scalar_map zm = ov_zm.scalar_map_value (); - - return zm.contents ("Direction").string_value (); -} - void Canvas::select_object (graphics_object obj, QMouseEvent* event, graphics_object ¤tObj, graphics_object &axesObj)