Mercurial > hg > octave-nkf
comparison libgui/graphics/Canvas.cc @ 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 | 062422f2e399 |
children | 2d415c68213f |
comparison
equal
deleted
inserted
replaced
20500:b6a59cc96bfa | 20502:64f6d0543626 |
---|---|
346 | 346 |
347 return pm.contents ("Motion").string_value (); | 347 return pm.contents ("Motion").string_value (); |
348 } | 348 } |
349 | 349 |
350 static bool | 350 static bool |
351 rotate_enabled (const graphics_object figObj) | |
352 { | |
353 // Getting rotate mode property: | |
354 octave_value ov_rm | |
355 = Utils::properties<figure> (figObj).get___rotate_mode__ (); | |
356 | |
357 octave_scalar_map rm = ov_rm.scalar_map_value (); | |
358 | |
359 return rm.contents ("Enable").string_value () == "on"; | |
360 } | |
361 | |
362 static bool | |
363 zoom_enabled (const graphics_object figObj) | 351 zoom_enabled (const graphics_object figObj) |
364 { | 352 { |
365 // Getting zoom mode property: | 353 // Getting zoom mode property: |
366 octave_value ov_zm | 354 octave_value ov_zm |
367 = Utils::properties<figure> (figObj).get___zoom_mode__ (); | 355 = Utils::properties<figure> (figObj).get___zoom_mode__ (); |
379 = Utils::properties<figure> (figObj).get___zoom_mode__ (); | 367 = Utils::properties<figure> (figObj).get___zoom_mode__ (); |
380 | 368 |
381 octave_scalar_map zm = ov_zm.scalar_map_value (); | 369 octave_scalar_map zm = ov_zm.scalar_map_value (); |
382 | 370 |
383 return zm.contents ("Motion").string_value (); | 371 return zm.contents ("Motion").string_value (); |
384 } | |
385 | |
386 static std::string | |
387 zoom_direction (const graphics_object figObj) | |
388 { | |
389 // Getting zoom mode property: | |
390 octave_value ov_zm | |
391 = Utils::properties<figure> (figObj).get___zoom_mode__ (); | |
392 | |
393 octave_scalar_map zm = ov_zm.scalar_map_value (); | |
394 | |
395 return zm.contents ("Direction").string_value (); | |
396 } | 372 } |
397 | 373 |
398 void | 374 void |
399 Canvas::select_object (graphics_object obj, QMouseEvent* event, | 375 Canvas::select_object (graphics_object obj, QMouseEvent* event, |
400 graphics_object ¤tObj, graphics_object &axesObj) | 376 graphics_object ¤tObj, graphics_object &axesObj) |