Skip to content

Commit c090511

Browse files
committed
removes proof of concept code that is no longer needed
1 parent c8b72ac commit c090511

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

google/cloud/bigquery/_helpers.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
"""Shared helper functions for BigQuery API classes."""
1616

1717
import base64
18-
import copy
1918
import datetime
2019
import decimal
2120
import json
@@ -1038,19 +1037,3 @@ def _isinstance_or_raise(
10381037

10391038
msg = f"Pass {value} as a '{dtype}'{or_none}. Got {type(value)}."
10401039
raise TypeError(msg)
1041-
1042-
1043-
def _from_api_repr(cls, resource: dict):
1044-
"""Factory: constructs an instance of the class (cls)
1045-
given its API representation.
1046-
1047-
Args:
1048-
resource (Dict[str, Any]):
1049-
API representation of the object to be instantiated.
1050-
1051-
Returns:
1052-
An instance of the class initialized with data from 'resource'.
1053-
"""
1054-
config = cls
1055-
config._properties = copy.deepcopy(resource)
1056-
return config

0 commit comments

Comments
 (0)