Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

Commit 8751308

Browse files
committed
merged
2 parents a92297a + 9ff2097 commit 8751308

File tree

2 files changed

+1
-28
lines changed

2 files changed

+1
-28
lines changed

src/Firebase.cpp

-25
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,6 @@ unique_ptr<FirebaseGet> Firebase::getPtr(const String& path) {
5454
return unique_ptr<FirebaseGet>(new FirebaseGet(host_, auth_, path, http_.get()));
5555
}
5656

57-
unique_ptr<FirebaseGet> Firebase::getPtr(const String& path) {
58-
return unique_ptr<FirebaseGet>(new FirebaseGet(host_, auth_, path, &http_));
59-
}
60-
6157
FirebaseSet Firebase::set(const String& path, const String& value) {
6258
return FirebaseSet(host_, auth_, path, value, http_.get());
6359
}
@@ -68,23 +64,13 @@ unique_ptr<FirebaseSet> Firebase::setPtr(const String& path,
6864
new FirebaseSet(host_, auth_, path, value, http_.get()));
6965
}
7066

71-
unique_ptr<FirebaseSet> Firebase::setPtr(const String& path,
72-
const String& value) {
73-
return unique_ptr<FirebaseSet>(
74-
new FirebaseSet(host_, auth_, path, value, &http_);
75-
}
76-
7767
FirebasePush Firebase::push(const String& path, const String& value) {
7868
return FirebasePush(host_, auth_, path, value, http_.get());
7969
}
8070
unique_ptr<FirebasePush> Firebase::pushPtr(const String& path, const String& value) {
8171
return unique_ptr<FirebasePush>(
8272
new FirebasePush(host_, auth_, path, value, http_.get()));
8373
}
84-
unique_ptr<FirebasePush> Firebase::pushPtr(const String& path, const String& value) {
85-
return unique_ptr<FirebasePush>(
86-
new FirebasePush(host_, auth_, path, value, &http_);
87-
}
8874

8975
FirebaseRemove Firebase::remove(const String& path) {
9076
return FirebaseRemove(host_, auth_, path, http_.get());
@@ -95,11 +81,6 @@ unique_ptr<FirebaseRemove> Firebase::removePtr(const String& path) {
9581
new FirebaseRemove(host_, auth_, path, http_.get()));
9682
}
9783

98-
unique_ptr<FirebaseRemove> Firebase::removePtr(const String& path) {
99-
return unique_ptr<FirebaseRemove>(
100-
new FirebaseRemove(host_, auth_, path, &http_);
101-
}
102-
10384
FirebaseStream Firebase::stream(const String& path) {
10485
// TODO: create new client dedicated to stream.
10586
return FirebaseStream(host_, auth_, path, http_.get());
@@ -111,12 +92,6 @@ unique_ptr<FirebaseStream> Firebase::streamPtr(const String& path) {
11192
new FirebaseStream(host_, auth_, path, http_.get()));
11293
}
11394

114-
unique_ptr<FirebaseStream> Firebase::streamPtr(const String& path) {
115-
// TODO: create new client dedicated to stream.
116-
return unique_ptr<FirebaseStream>(
117-
new FirebaseStream(host_, auth_, path, &http_);
118-
}
119-
12095
// FirebaseCall
12196
FirebaseCall::FirebaseCall(const String& host, const String& auth,
12297
const char* method, const String& path,

src/Firebase.h

+1-3
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ class Firebase {
4040

4141
Firebase(const Firebase&) = delete;
4242

43-
Firebase(const Firebase&) = delete;
44-
4543
// Fetch auth string back.
4644
const String& auth();
4745

@@ -160,7 +158,7 @@ class FirebaseStream : public FirebaseCall {
160158
FirebaseStream() {}
161159
FirebaseStream(const String& host, const String& auth,
162160
const String& path, FirebaseHttpClient* http = NULL);
163-
161+
164162
// Return if there is any event available to read.
165163
virtual bool available();
166164

0 commit comments

Comments
 (0)