Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
e5f246d3
Unverified
Commit
e5f246d3
authored
Jun 13, 2019
by
Hao Nguyen
Committed by
GitHub
Jun 13, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6250 from haon4/csharp_remove_fields
Remove unused fields
parents
61301f01
bb1c0ade
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
5 deletions
+0
-5
ExtensionCollection.cs
csharp/src/Google.Protobuf/Reflection/ExtensionCollection.cs
+0
-5
No files found.
csharp/src/Google.Protobuf/Reflection/ExtensionCollection.cs
View file @
e5f246d3
...
...
@@ -41,15 +41,11 @@ namespace Google.Protobuf.Reflection
/// </summary>
public
class
ExtensionCollection
{
private
readonly
FileDescriptor
file
;
private
readonly
MessageDescriptor
message
;
private
IDictionary
<
MessageDescriptor
,
IList
<
FieldDescriptor
>>
extensionsByTypeInDeclarationOrder
;
private
IDictionary
<
MessageDescriptor
,
IList
<
FieldDescriptor
>>
extensionsByTypeInNumberOrder
;
internal
ExtensionCollection
(
FileDescriptor
file
,
Extension
[]
extensions
)
{
this
.
file
=
file
;
UnorderedExtensions
=
DescriptorUtil
.
ConvertAndMakeReadOnly
(
file
.
Proto
.
Extension
,
(
extension
,
i
)
=>
new
FieldDescriptor
(
extension
,
file
,
null
,
i
,
null
,
extensions
?[
i
]));
...
...
@@ -57,7 +53,6 @@ namespace Google.Protobuf.Reflection
internal
ExtensionCollection
(
MessageDescriptor
message
,
Extension
[]
extensions
)
{
this
.
message
=
message
;
UnorderedExtensions
=
DescriptorUtil
.
ConvertAndMakeReadOnly
(
message
.
Proto
.
Extension
,
(
extension
,
i
)
=>
new
FieldDescriptor
(
extension
,
message
.
File
,
message
,
i
,
null
,
extensions
?[
i
]));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment