good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
J
jrpc
Manage
Activity
Members
Labels
Plan
Issues
6
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
4
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open
jrpc
Commits
77934263
Verified
Commit
77934263
authored
1 year ago
by
a
Browse files
Options
Downloads
Patches
Plain Diff
delete more code
parent
9b08938e
No related branches found
No related tags found
No related merge requests found
Pipeline
#31627
passed with stage
in 3 minutes and 54 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pkg/util/mapset/mapset.go
+0
-36
0 additions, 36 deletions
pkg/util/mapset/mapset.go
with
0 additions
and
36 deletions
pkg/util/mapset/mapset.go
deleted
100644 → 0
+
0
−
36
View file @
9b08938e
package
mapset
import
"sync"
type
Set
[
T
comparable
]
struct
{
m
map
[
T
]
struct
{}
mu
sync
.
RWMutex
}
func
NewSet
[
T
comparable
]()
*
Set
[
T
]
{
return
&
Set
[
T
]{
m
:
make
(
map
[
T
]
struct
{}),
}
}
func
(
s
*
Set
[
T
])
Add
(
x
T
)
{
s
.
mu
.
Lock
()
defer
s
.
mu
.
Unlock
()
s
.
m
[
x
]
=
struct
{}{}
}
func
(
s
*
Set
[
T
])
Remove
(
x
T
)
{
s
.
mu
.
Lock
()
defer
s
.
mu
.
Unlock
()
delete
(
s
.
m
,
x
)
}
func
(
s
*
Set
[
T
])
Each
(
fn
func
(
x
T
)
bool
)
{
s
.
mu
.
RLock
()
defer
s
.
mu
.
RUnlock
()
for
k
:=
range
s
.
m
{
if
!
fn
(
k
)
{
return
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment