diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2010-12-18 06:11:52 +0000 |
|---|---|---|
| committer | Jon A. Cruz <jon@joncruz.org> | 2010-12-18 06:11:52 +0000 |
| commit | 66671b66f982b675f17ac5ea940f2b2daf4bfa25 (patch) | |
| tree | 7861f8bf6a60ede9b5ba0fa9e070b3324aad6a21 /src | |
| parent | Merge from trunk. (diff) | |
| download | inkscape-66671b66f982b675f17ac5ea940f2b2daf4bfa25.tar.gz inkscape-66671b66f982b675f17ac5ea940f2b2daf4bfa25.zip | |
Prune initial timer work.
(bzr r9955.1.3)
Diffstat (limited to 'src')
| -rw-r--r-- | src/widgets/desktop-widget.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/widgets/desktop-widget.cpp b/src/widgets/desktop-widget.cpp index 4620b1532..3509a1040 100644 --- a/src/widgets/desktop-widget.cpp +++ b/src/widgets/desktop-widget.cpp @@ -123,30 +123,6 @@ static void sp_dtw_sticky_zoom_toggled (GtkMenuItem *item, gpointer data); SPViewWidgetClass *dtw_parent_class; -static GTimer *baseTimer = 0; -static bool timeReported = false; - -static void timeGoing(gchar const* id) -{ - if ( !baseTimer ) { - g_message("Starting time at point [%s]", id); - baseTimer = g_timer_new(); - } -} - -static void checkTime(gchar const* msg) -{ - if ( baseTimer && !timeReported ) { - timeReported = true; - g_timer_stop(baseTimer); - gulong msCount = 0; - gdouble secs = g_timer_elapsed( baseTimer, &msCount ); - g_message("Time ended at %2.3f with [%s]", secs, msg); - } -} - - - class CMSPrefWatcher { public: CMSPrefWatcher() : @@ -278,7 +254,6 @@ GType SPDesktopWidget::getType(void) { static GtkType type = 0; if (!type) { - timeGoing("SPDesktopWidget::getType"); GTypeInfo info = { sizeof(SPDesktopWidgetClass), 0, // base_init @@ -304,7 +279,6 @@ GType SPDesktopWidget::getType(void) static void sp_desktop_widget_class_init (SPDesktopWidgetClass *klass) { - timeGoing("sp_desktop_widget_class_init"); dtw_parent_class = (SPViewWidgetClass*)gtk_type_class (SP_TYPE_VIEW_WIDGET); GtkObjectClass *object_class = (GtkObjectClass *) klass; @@ -321,7 +295,6 @@ sp_desktop_widget_class_init (SPDesktopWidgetClass *klass) */ void SPDesktopWidget::init( SPDesktopWidget *dtw ) { - timeGoing("SPDesktopWidget::init"); GtkWidget *widget; GtkWidget *tbl; GtkWidget *canvas_tbl; |
