mirror of
https://github.com/digital-asset/daml.git
synced 2024-11-09 15:37:05 +03:00
Remove unused GlobalKey.packageId accessor (#19400)
This commit is contained in:
parent
e2f447333d
commit
19d2d6b17e
@ -359,8 +359,8 @@ final class Conversions(
|
||||
|
||||
def convertGlobalKey(globalKey: GlobalKey): proto.GlobalKey = {
|
||||
val builder = proto.GlobalKey.newBuilder
|
||||
globalKey.packageId.foreach(p => builder.setPackage(convertPackageId(p)))
|
||||
builder
|
||||
.setPackage(convertPackageId(globalKey.templateId.packageId))
|
||||
.setName(globalKey.qualifiedName.toString)
|
||||
.setKey(convertValue(globalKey.key))
|
||||
.build
|
||||
|
@ -23,8 +23,6 @@ final class GlobalKey private (
|
||||
case _ => false
|
||||
}
|
||||
|
||||
// Ready for refactoring where packageId becomes optional (#14486)
|
||||
def packageId: Option[Ref.PackageId] = Some(templateId.packageId)
|
||||
def qualifiedName: Ref.QualifiedName = templateId.qualifiedName
|
||||
|
||||
override def hashCode(): Int = hash.hashCode()
|
||||
|
Loading…
Reference in New Issue
Block a user