Skip to content

Commit af3ab7e

Browse files
author
arthur_abrantes
committedAug 2, 2021
remove unecessary prints
1 parent 4bf32cb commit af3ab7e

File tree

4 files changed

+0
-8
lines changed

4 files changed

+0
-8
lines changed
 

‎lib/models/user.dart

-2
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,6 @@ class UserModel extends ChangeNotifier {
186186

187187
// getGeocoding updates _geocoding. On failure, _geocoding is set to null.
188188
Future<void> getGeocoding(Position pos, {bool notify = true}) async {
189-
print("getGeocoding");
190189
if (pos == null) {
191190
// don't update geocoding position is null
192191
return;
@@ -200,7 +199,6 @@ class UserModel extends ChangeNotifier {
200199
geocoding.results != null &&
201200
geocoding.results.length > 0) {
202201
geocodingResult = geocoding.results[0];
203-
print(geocodingResult.latitude);
204202
}
205203
// set user position
206204
_geocoding = geocodingResult;

‎lib/screens/insertNewPhone.dart

-3
Original file line numberDiff line numberDiff line change
@@ -179,22 +179,19 @@ class InsertNewPhoneState extends State<InsertNewPhone> {
179179
FirebaseAuth firebaseAuth,
180180
FirebaseDatabase firebaseDatabase,
181181
) async {
182-
print("buttonCallback");
183182
// ensure user is connected to the internet
184183
ConnectivityModel connectivity = Provider.of<ConnectivityModel>(
185184
context,
186185
listen: false,
187186
);
188187
if (!connectivity.hasConnection) {
189-
print("no connection");
190188
await connectivity.alertWhenOffline(
191189
context,
192190
message: "Conecte-se à internet para alterar o número de telefone.",
193191
);
194192
return;
195193
}
196194
if (phoneNumber != null) {
197-
print("phoneNumber != null");
198195
if (phoneNumber.withCountryCode() ==
199196
firebaseAuth.currentUser.phoneNumber) {
200197
// only alter phone number if new number is different

‎lib/screens/insertPassword.dart

-2
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,6 @@ class InsertPasswordState extends State<InsertPassword> {
219219
FirebaseModel firebase,
220220
UserModel user,
221221
) async {
222-
print("registerUSER");
223222
// if user already has a partner account
224223
if (firebase.isRegistered) {
225224
// make sure they've entered a correct password
@@ -326,7 +325,6 @@ class InsertPasswordState extends State<InsertPassword> {
326325
),
327326
),
328327
onPressedYes: () {
329-
print("pressed yes");
330328
// dismiss dialog
331329
Navigator.pop(context);
332330
setState(() {

‎test/widget/insertNewPhone_test.dart

-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ void main() {
6767
break;
6868
case "verificationFailed":
6969
{
70-
print("VERIFICATIONFAILED");
7170
String errorMsg =
7271
mockFirebaseAuth.verificationFailedCallback(exception);
7372
insertNewPhoneState.setInactiveState(message: errorMsg);

0 commit comments

Comments
 (0)
Please sign in to comment.