From 62bb8a055fea0a1f3e25f757ca8201f54bae6012 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Thu, 30 Aug 2018 19:27:14 -0400 Subject: Removed more stream-related classes Among the deleted classes are list and direct_message. These classes were just stubs because the streaming API was able to return those objects. libtwitter++ does not yet actually support these objects, so the stub classes will be deleted for now. refs #3 --- src/bounding_box.h | 88 -------------------------------------------------- src/direct_message.cpp | 10 ------ src/direct_message.h | 17 ---------- src/list.cpp | 10 ------ src/list.h | 18 ----------- src/twitter.h | 6 ++-- 6 files changed, 2 insertions(+), 147 deletions(-) delete mode 100644 src/bounding_box.h delete mode 100644 src/direct_message.cpp delete mode 100644 src/direct_message.h delete mode 100644 src/list.cpp delete mode 100644 src/list.h (limited to 'src') diff --git a/src/bounding_box.h b/src/bounding_box.h deleted file mode 100644 index 25c7790..0000000 --- a/src/bounding_box.h +++ /dev/null @@ -1,88 +0,0 @@ -#ifndef BOUNDING_BOX_H_75D2077D -#define BOUNDING_BOX_H_75D2077D - -namespace twitter { - - class coordinate { - public: - - coordinate(int degrees, int minutes = 0, int seconds = 0) : - _degrees(degrees), - _minutes(minutes), - _seconds(seconds) - { - } - - int getDegrees() const - { - return _degrees; - } - - int getMinutes() const - { - return _minutes; - } - - int getSeconds() const - { - return _seconds; - } - - operator double() const - { - return (double)_degrees + ((double)_minutes / (double)60) + ((double)_seconds / (double)3600); - } - - private: - - int _degrees; - int _minutes; - int _seconds; - }; - - class bounding_box { - public: - - bounding_box( - coordinate south_west_long, - coordinate south_west_lat, - coordinate north_east_long, - coordinate north_east_lat) : - _south_west_long(south_west_long), - _south_west_lat(south_west_lat), - _north_east_long(north_east_long), - _north_east_lat(north_east_lat) - { - } - - const coordinate& getSouthWestLongitude() const - { - return _south_west_long; - } - - const coordinate& getSouthWestLatitude() const - { - return _south_west_lat; - } - - const coordinate& getNorthEastLongitude() const - { - return _north_east_long; - } - - const coordinate& getNorthEastLatitude() const - { - return _north_east_lat; - } - - private: - - coordinate _south_west_long; - coordinate _south_west_lat; - coordinate _north_east_long; - coordinate _north_east_lat; - }; - -} - -#endif /* end of include guard: BOUNDING_BOX_H_75D2077D */ diff --git a/src/direct_message.cpp b/src/direct_message.cpp deleted file mode 100644 index d5b6f36..0000000 --- a/src/direct_message.cpp +++ /dev/null @@ -1,10 +0,0 @@ -#include "direct_message.h" - -namespace twitter { - - direct_message::direct_message(std::string data) - { - - } - -}; diff --git a/src/direct_message.h b/src/direct_message.h deleted file mode 100644 index 46a66dc..0000000 --- a/src/direct_message.h +++ /dev/null @@ -1,17 +0,0 @@ -#ifndef DIRECT_MESSAGE_H_2B2AE3F8 -#define DIRECT_MESSAGE_H_2B2AE3F8 - -#include - -namespace twitter { - - class direct_message { - public: - - direct_message() {} - explicit direct_message(std::string data); - }; - -}; - -#endif /* end of include guard: DIRECT_MESSAGE_H_2B2AE3F8 */ diff --git a/src/list.cpp b/src/list.cpp deleted file mode 100644 index d2b61cc..0000000 --- a/src/list.cpp +++ /dev/null @@ -1,10 +0,0 @@ -#include "list.h" - -namespace twitter { - - list::list(std::string data) - { - - } - -}; diff --git a/src/list.h b/src/list.h deleted file mode 100644 index 1bf034f..0000000 --- a/src/list.h +++ /dev/null @@ -1,18 +0,0 @@ -#ifndef LIST_H_D7DEA7D8 -#define LIST_H_D7DEA7D8 - -#include - -namespace twitter { - - class list { - public: - - list() {} - explicit list(std::string data); - - }; - -}; - -#endif /* end of include guard: LIST_H_D7DEA7D8 */ diff --git a/src/twitter.h b/src/twitter.h index 382cdce..f8b23d0 100644 --- a/src/twitter.h +++ b/src/twitter.h @@ -2,9 +2,9 @@ #define TWITTER_H_AC7A7666 namespace twitter { - + class tweet; - + }; #include "codes.h" @@ -14,8 +14,6 @@ namespace twitter { #include "timeline.h" #include "tweet.h" #include "user.h" -#include "list.h" -#include "direct_message.h" #include "configuration.h" #endif /* end of include guard: TWITTER_H_AC7A7666 */ -- cgit 1.4.1