mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-07 00:24:18 +00:00
chore: Remove unused server basic info attribute
This commit is contained in:
parent
7b02074345
commit
69822f24ca
|
@ -3,14 +3,12 @@ class ServerBasicInfo {
|
|||
required this.id,
|
||||
required this.name,
|
||||
required this.reverseDns,
|
||||
required this.serverTypeId,
|
||||
required this.ip,
|
||||
required this.created,
|
||||
});
|
||||
final int id;
|
||||
final String name;
|
||||
final String reverseDns;
|
||||
final String serverTypeId;
|
||||
final String ip;
|
||||
final DateTime created;
|
||||
}
|
||||
|
@ -24,7 +22,6 @@ class ServerBasicInfoWithValidators extends ServerBasicInfo {
|
|||
id: serverBasicInfo.id,
|
||||
name: serverBasicInfo.name,
|
||||
reverseDns: serverBasicInfo.reverseDns,
|
||||
serverTypeId: serverBasicInfo.serverTypeId,
|
||||
ip: serverBasicInfo.ip,
|
||||
created: serverBasicInfo.created,
|
||||
isIpValid: isIpValid,
|
||||
|
@ -35,7 +32,6 @@ class ServerBasicInfoWithValidators extends ServerBasicInfo {
|
|||
required super.id,
|
||||
required super.name,
|
||||
required super.reverseDns,
|
||||
required super.serverTypeId,
|
||||
required super.ip,
|
||||
required super.created,
|
||||
required this.isIpValid,
|
||||
|
|
|
@ -81,7 +81,6 @@ class DigitalOceanServerProvider extends ServerProvider {
|
|||
created: DateTime.now(),
|
||||
ip: ipv4,
|
||||
name: server['name'],
|
||||
serverTypeId: server['region']['slug'],
|
||||
);
|
||||
},
|
||||
).toList();
|
||||
|
|
|
@ -77,7 +77,6 @@ class HetznerServerProvider extends ServerProvider {
|
|||
ip: hetznerServer.publicNet.ipv4!.ip,
|
||||
reverseDns: hetznerServer.publicNet.ipv4!.reverseDns,
|
||||
created: hetznerServer.created,
|
||||
serverTypeId: hetznerServer.name,
|
||||
);
|
||||
} catch (e) {
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue