Skip to content

Commit

Permalink
remove unused internal-only events
Browse files Browse the repository at this point in the history
  • Loading branch information
YusukeIwaki committed Nov 24, 2020
1 parent 301ea24 commit c1eb572
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions lib/puppeteer/events.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,36 +58,6 @@ module Events ; end
TargetChanged: 'targetchanged',
},

NetworkManager: {
Request: Symbol('Events.NetworkManager.Request'),
Response: Symbol('Events.NetworkManager.Response'),
RequestFailed: Symbol('Events.NetworkManager.RequestFailed'),
RequestFinished: Symbol('Events.NetworkManager.RequestFinished'),
},

FrameManager: {
FrameAttached: Symbol('Events.FrameManager.FrameAttached'),
FrameNavigated: Symbol('Events.FrameManager.FrameNavigated'),
FrameDetached: Symbol('Events.FrameManager.FrameDetached'),
LifecycleEvent: Symbol('Events.FrameManager.LifecycleEvent'),
FrameNavigatedWithinDocument: Symbol(
'Events.FrameManager.FrameNavigatedWithinDocument'
),
ExecutionContextCreated: Symbol(
'Events.FrameManager.ExecutionContextCreated'
),
ExecutionContextDestroyed: Symbol(
'Events.FrameManager.ExecutionContextDestroyed'
),
},

Connection: {
Disconnected: Symbol('Events.Connection.Disconnected'),
},

CDPSession: {
Disconnected: Symbol('Events.CDPSession.Disconnected'),
},
}.each do |subtree, values|
new_module = Module.new
values.define_const_into(new_module)
Expand Down

0 comments on commit c1eb572

Please sign in to comment.