Remove item from self

Property definitions

app $ CompositeControl :: remove
	# Remove `item` from `self`
	fun remove(item: Control) do if has(item) then items.remove item
lib/app/ui.nit:180,2--181,65

ios :: ui $ CompositeControl :: remove
	redef fun remove(view)
	do
		super

		if view isa View then
			view.native.remove_from_superview
		end
	end
lib/ios/ui/ui.nit:187,2--194,4

linux :: ui $ Layout :: remove
	redef fun remove(item)
	do
		super
		if item isa View then native.remove item.native
	end
lib/linux/ui.nit:155,2--159,4

android :: ui $ Layout :: remove
	redef fun remove(item)
	do
		super
		if item isa View then native.remove_view item.native
	end
lib/android/ui/ui.nit:152,2--156,4

linux :: ui $ ListLayout :: remove
	redef fun remove(item)
	do
		super
		if item isa View then
			var native_row = native_rows.get_or_null(item)
			if native_row == null then
				print_error "Error: {self} does not contains {item}"
				return
			end

			native_list_box.remove native_row
			native_rows.keys.remove item
			native_row.destroy
		end
	end
lib/linux/ui.nit:223,2--237,4