Code Duplication    Length = 6-6 lines in 2 locations

engine/classes/Elgg/Forms/StickyForms.php 2 locations

@@ 60-65 (lines=6) @@
57
	 *
58
	 * @return void
59
	 */
60
	function clearStickyForm($form_name) {
61
		$session = _elgg_services()->session;
62
		$data = $session->get('sticky_forms', array());
63
		unset($data[$form_name]);
64
		$session->set('sticky_forms', $data);
65
	}
66
	
67
	/**
68
	 * Does form submission data exist for this form?
@@ 139-144 (lines=6) @@
136
	 *
137
	 * @return void
138
	 */
139
	function clearStickyValue($form_name, $variable) {
140
		$session = _elgg_services()->session;
141
		$data = $session->get('sticky_forms', array());
142
		unset($data[$form_name][$variable]);
143
		$session->set('sticky_forms', $data);
144
	}
145
	
146
}