summaryrefslogtreecommitdiff
path: root/plugins/unityshell
diff options
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2013-09-18 16:41:59 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2013-09-18 16:41:59 +0200
commit0f01491e5d92f038b908f2bf206713f9fdfed4a9 (patch)
tree394e0718605e77e80c756d8864731c147b5966b5 /plugins/unityshell
parent4ab3aa187443543adfb80d7e287bb2e46ea0719e (diff)
AggregateMonitor, ElapsedTimeMonitor: remove useless files
(bzr r3506.5.12)
Diffstat (limited to 'plugins/unityshell')
-rw-r--r--plugins/unityshell/src/AggregateMonitor.cpp63
-rw-r--r--plugins/unityshell/src/AggregateMonitor.h50
-rw-r--r--plugins/unityshell/src/ElapsedTimeMonitor.cpp49
-rw-r--r--plugins/unityshell/src/ElapsedTimeMonitor.h47
4 files changed, 0 insertions, 209 deletions
diff --git a/plugins/unityshell/src/AggregateMonitor.cpp b/plugins/unityshell/src/AggregateMonitor.cpp
deleted file mode 100644
index 62eb5c2e8..000000000
--- a/plugins/unityshell/src/AggregateMonitor.cpp
+++ /dev/null
@@ -1,63 +0,0 @@
-// -*- Mode: C++; indent-tabs-mode: nil; tab-width: 2 -*-
-/*
-* Copyright (C) 2011 Canonical Ltd
-*
-* This program is free software: you can redistribute it and/or modify
-* it under the terms of the GNU General Public License version 3 as
-* published by the Free Software Foundation.
-*
-* This program is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-* GNU General Public License for more details.
-*
-* You should have received a copy of the GNU General Public License
-* along with this program. If not, see <http://www.gnu.org/licenses/>.
-*
-* Authored by: Alex Launi <alex.launi@canonical.com>
-*/
-
-#include "AggregateMonitor.h"
-#include "ElapsedTimeMonitor.h"
-#include <UnityCore/Variant.h>
-
-namespace unity {
-namespace performance {
-
-AggregateMonitor::AggregateMonitor()
-{
- _monitors.push_back(new ElapsedTimeMonitor());
-}
-
-AggregateMonitor::~AggregateMonitor()
-{
-}
-
-std::string AggregateMonitor::GetName() const
-{
- return "AggregateMonitor";
-}
-
-void AggregateMonitor::StartMonitor()
-{
- for (std::list<Monitor*>::iterator iter = _monitors.begin(), end = _monitors.end();
- iter != end; ++iter)
- {
- Monitor* monitor = *iter;
- monitor->Start();
- }
-}
-
-void AggregateMonitor::StopMonitor(GVariantBuilder* builder)
-{
- variant::BuilderWrapper wrapper(builder);
- for (std::list<Monitor*>::iterator iter = _monitors.begin(), end = _monitors.end();
- iter != end; ++iter)
- {
- Monitor* monitor = *iter;
- wrapper.add(monitor->GetName().c_str(), monitor->Stop());
- }
-}
-
-}
-}
diff --git a/plugins/unityshell/src/AggregateMonitor.h b/plugins/unityshell/src/AggregateMonitor.h
deleted file mode 100644
index 251f8158d..000000000
--- a/plugins/unityshell/src/AggregateMonitor.h
+++ /dev/null
@@ -1,50 +0,0 @@
-// -*- Mode: C++; indent-tabs-mode: nil; tab-width: 2 -*-
-/*
-* Copyright (C) 2011 Canonical Ltd
-*
-* This program is free software: you can redistribute it and/or modify
-* it under the terms of the GNU General Public License version 3 as
-* published by the Free Software Foundation.
-*
-* This program is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-* GNU General Public License for more details.
-*
-* You should have received a copy of the GNU General Public License
-* along with this program. If not, see <http://www.gnu.org/licenses/>.
-*
-* Authored by: Alex Launi <alex.launi@canonical.com>
-*/
-
-#ifndef UNITY_PERFORMANCE_AGGREGATE_MONITOR
-#define UNITY_PERFORMANCE_AGGREGATE_MONITOR
-
-#include <list>
-#include <string>
-#include <gio/gio.h>
-
-#include "Monitor.h"
-
-namespace unity {
-namespace performance {
-
-class AggregateMonitor : public Monitor
-{
-public:
- AggregateMonitor();
- ~AggregateMonitor();
- std::string GetName() const;
-
-protected:
- void StartMonitor();
- void StopMonitor(GVariantBuilder* builder);
-
-private:
- std::list<Monitor*> _monitors;
-};
-
-}
-}
-
-#endif // UNITY_PERFORMANCE_AGGREGATE_MONITOR
diff --git a/plugins/unityshell/src/ElapsedTimeMonitor.cpp b/plugins/unityshell/src/ElapsedTimeMonitor.cpp
deleted file mode 100644
index 586ab6368..000000000
--- a/plugins/unityshell/src/ElapsedTimeMonitor.cpp
+++ /dev/null
@@ -1,49 +0,0 @@
-// -*- Mode: C++; indent-tabs-mode: nil; tab-width: 2 -*-
-/*
-* Copyright (C) 2011 Canonical Ltd
-*
-* This program is free software: you can redistribute it and/or modify
-* it under the terms of the GNU General Public License version 3 as
-* published by the Free Software Foundation.
-*
-* This program is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-* GNU General Public License for more details.
-*
-* You should have received a copy of the GNU General Public License
-* along with this program. If not, see <http://www.gnu.org/licenses/>.
-*
-* Authored by: Alex Launi <alex.launi@canonical.com>
-*/
-
-#include <UnityCore/Variant.h>
-
-#include "ElapsedTimeMonitor.h"
-#include "TimeUtil.h"
-
-namespace unity{
-namespace performance {
-
-std::string ElapsedTimeMonitor::GetName() const
-{
- return "ElapsedTimeMonitor";
-}
-
-void ElapsedTimeMonitor::StartMonitor()
-{
- clock_gettime(CLOCK_MONOTONIC, &_start);
-}
-
-void ElapsedTimeMonitor::StopMonitor(GVariantBuilder* builder)
-{
- struct timespec current;
- clock_gettime(CLOCK_MONOTONIC, &current);
- DeltaTime diff = TimeUtil::TimeDelta(&current, &_start);
-
- variant::BuilderWrapper(builder)
- .add("elapsed-time", diff);
-}
-
-}
-}
diff --git a/plugins/unityshell/src/ElapsedTimeMonitor.h b/plugins/unityshell/src/ElapsedTimeMonitor.h
deleted file mode 100644
index 55f6d9d83..000000000
--- a/plugins/unityshell/src/ElapsedTimeMonitor.h
+++ /dev/null
@@ -1,47 +0,0 @@
-// -*- Mode: C++; indent-tabs-mode: nil; tab-width: 2 -*-
-/*
-* Copyright (C) 2011 Canonical Ltd
-*
-* This program is free software: you can redistribute it and/or modify
-* it under the terms of the GNU General Public License version 3 as
-* published by the Free Software Foundation.
-*
-* This program is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-* GNU General Public License for more details.
-*
-* You should have received a copy of the GNU General Public License
-* along with this program. If not, see <http://www.gnu.org/licenses/>.
-*
-* Authored by: Alex Launi <alex.launi@canonical.com>
-*/
-
-#ifndef UNITY_PERFORMANCE_ELAPSED_TIME_MONITOR
-#define UNITY_PERFORMANCE_ELAPSED_TIME_MONITOR
-
-#include <glib.h>
-#include <time.h>
-
-#include "Monitor.h"
-
-namespace unity {
-namespace performance {
-
-class ElapsedTimeMonitor : public Monitor
-{
-public:
- std::string GetName() const;
-
-protected:
- void StartMonitor();
- void StopMonitor(GVariantBuilder* builder);
-
-private:
- struct timespec _start;
-};
-
-}
-}
-
-#endif // UNITY_PERFORMANCE_ELAPSED_TIME_MONITOR